package the.broccoli.uc.mapper;

import org.apache.ibatis.annotations.Param;
import the.broccoli.uc.entity.UserRole;
import org.wisteria.framework.web.mvc.dao.SuperMapper;

import java.util.Date;

/**
 * <p>
 * 用户与角色 Mapper 接口
 * </p>
 *
 * @author lei.liu
 * @since 2020-04-09
 */
public interface UserRoleMapper extends SuperMapper<UserRole> {
    void deleteByUserId(@Param("userId") String userId, @Param("modifiedId") String modifiedId, @Param("modifiedName") String modifiedName, @Param("modifiedTime") Date modifiedTime);

    void deleteByRoleId(@Param("roleId") String roleId, @Param("modifiedId") String modifiedId, @Param("modifiedName") String modifiedName, @Param("modifiedTime") Date modifiedTime);

}
